#初始化账号mapping
#curl http://pt3webscript.zjk.taeapp.com/pro/v1/esInit/formDataMapping -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","userId":"1","corpid": "1","platform":"web","frontDev":"1","saasMark":1,"businessType":9500,"byCorpid":0}'

#账号索引加别名
#curl http://pt3webscript.zjk.taeapp.com/pro/v1/esInit/addAlias  -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","userId":"1","corpid": "1","platform":"web","frontDev":"1","saasMark":1,"businessType":9500,"byCorpid":0}'


# corpid=0的解释处理，经销商模板：应收款、回款单、预收款余额、销项发票、回款计划、在线支付流水、对账单
# 【需确保】：tb_paas_form_explain 表内已经增加distributorMark字段
# 编写者 zcp
#curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/field/initDefaultExplain -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","xbbCode":123456,"corpid": "1","userId" : "1","platform":"web", "businessList": [701,702,712,901,5301,5401,5403], "distributorBusinessList": [701,702,712,901,5301,5401,5403,5600,401,501]}'

# 信用管理 corpid=0
#curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/field/initDefaultExplain -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","xbbCode":123456,"corpid":"1","userId":"1","platform":"web","businessList":[5510,5520,5530,5540]}'

##############################################################################################
## 给皇上请安   ding45b220254ed2e97335c2f4657eb6378f
## 测试Misaki  ding66041eb1c6df73f535c2f4657eb6378f
##  初始化经销商管理应用 整合到一个脚本了，后续只需要刷一个脚本就好了
curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/addDistributorExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1"}'
##  初始化订单应用
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/addOrderCenterExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1"}'
##  初始化出库发货单表单
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/addOrderOutStockFormExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1"}'
##  初始化营销管理应用
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/addMarketingExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1"}'
##  初始化资金表单
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/initFund -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1", "enable":1}'
##  初始化信用管理表单
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/initCreditMenu -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1","distributorMark":1}'
##  初始化营销解释
##curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/field/initmarketExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","platform":"web","frontDev":"1", "enable":1}'

## 2021-1-15 给皇上请安和测试Misaki这两家公司执行了前5个脚本，最后1个星星的脚本没有执行
##############################################################################################

##  仓库新增发货地址解释
curl  http://pt3webscript.zjk.taeapp.com/pro/v1/script/warehouse/repairWarehouseExplain -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","corpid":"1","userId":"1","platform":"web","frontDev":"1","corpidList":[]}'

# 添加产品解释 by郑风
curl http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/product/addProductExplain -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'
# 刷产品销量、上架时间、spu价格 by 郑风
curl http://pt3webscript.zjk.taeapp.com/pro/v1/script/distributor/product/generateProductData -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'
# 同步产品es by郑风
curl http://pt3webscript.zjk.taeapp.com/pro/v1/esInit/formDataInit -X POST -H 'Content-type: application/json' -d '{"corpid":"ding66041eb1c6df73f535c2f4657eb6378f","userId":"1","businessType": 2401,"byCorpid":0,"saasMark":1,"platform":"web","frontDev":"1","xbbCode":"123456"}'
